package lab2;

import java.util.Scanner;

public class SquareUntilZero {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		while (true) {
			int a = sc.nextInt();
			if (a>0) {
				int b = 1;
				while (a>0)
				{
					a--;
					b*=2;
				}
				System.out.println(b);
			}
			else if (a<0) {
				double b = 1;
				while (a<0)
				{
					b/=2.0;
					a++;
				}
				System.out.println(b);
			}
			else break;
		}
	}
}
